package mystack;

import java.util.LinkedList;

public class Test {
    public static void main(String[] args) {
        MyStack<Integer> stack=new MyStack<>(3);
        /*stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        System.out.println(stack.size());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.peek());
        LinkedList<Integer> linkedList=new LinkedList<>();
        linkedList.add(1);
        linkedList.add(2);
        linkedList.add(3);
        linkedList.add(4);
        linkedList.add(10);
        stack.printReverseListByStack(linkedList);*/
        int[] pushV={2,1,0};
        int[] popV={1,2,0};
        System.out.println(stack.IsPopOrder(pushV, popV));
    }
}
